import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import element from './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css'
import {instance} from "@/plugins/axios";
import editor from "mavon-editor";
import 'mavon-editor/dist/css/index.css'

Vue.config.productionTip = false
Vue.use(element) //vue引入element插件
Vue.use(editor)
try {
  new Vue({
    router,
    store,
    beforeCreate() {
      Vue.prototype.$axios = instance
    },
    created() {
      //这里不应该写权限验证 因为 login也在此逻辑之中
    },
    render: h => h(App)
  }).$mount('#app')
} catch (error) {
  console.log(error);
}


